package com.example.helloword.bean;


import java.io.Serializable;
import java.util.List;

public class Book implements Serializable {
    private String book_name;
    private String author;
    private String imgurl;
    private String bookurl;
    private String last_updated_time;
    private String latest_chapters;
    private List<Chapter> chapters;

    public Book(String book_name, String author, String imgurl, String bookurl, String last_updated_time, String latest_chapters, List<Chapter> chapters) {
        this.book_name = book_name;
        this.author = author;
        this.imgurl = imgurl;
        this.bookurl = bookurl;
        this.last_updated_time = last_updated_time;
        this.latest_chapters = latest_chapters;
        this.chapters = chapters;
    }

    public Book() {
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getBookurl() {
        return bookurl;
    }

    public void setBookurl(String bookurl) {
        this.bookurl = bookurl;
    }

    public String getLast_updated_time() {
        return last_updated_time;
    }

    public void setLast_updated_time(String last_updated_time) {
        this.last_updated_time = last_updated_time;
    }

    public String getLatest_chapters() {
        return latest_chapters;
    }

    public void setLatest_chapters(String latest_chapters) {
        this.latest_chapters = latest_chapters;
    }

    public List<Chapter> getChapters() {
        return chapters;
    }

    public void setChapters(List<Chapter> chapters) {
        this.chapters = chapters;
    }

    @Override
    public String toString() {
        return "Book{" +
                "book_name='" + book_name + '\'' +
                ", author='" + author + '\'' +
                ", imgurl='" + imgurl + '\'' +
                ", bookurl='" + bookurl + '\'' +
                ", last_updated_time='" + last_updated_time + '\'' +
                ", latest_chapters='" + latest_chapters + '\'' +
                ", chapters=" + chapters +
                '}';
    }
}
